<h2>Danh sách ảnh banner</h2>
	<?php $session->flash();?>
	<table class="widefat post fixed" cellspacing="0">
		<thead>
			<tr>
				<th scope="col" id="author" class="manage-column column-author" style="width:200px"><?php echo$paginator->sort('Tên ảnh', 'name')?></th>
				<th scope="col" id="categories" class="manage-column column-categories" style="width:150px"><?php echo$paginator->sort('Ảnh', 'images')?></th>
			</tr>
		</thead>
	
		<tfoot>
			<tr>
				<th scope="col" id="author" class="manage-column column-author" style="width:200px"><?php echo$paginator->sort('Tên ảnh', 'name')?></th>
				<th scope="col" id="categories" class="manage-column column-categories" style="width:150px"><?php echo$paginator->sort('Ảnh', 'images')?></th>
			</tr>
		</tfoot>
	
		<tbody>
			<?php 
			foreach ($banners as $banner)
			{
			?>
			<tr id="post-<?php echo$banner['Banner']['id']?>" class="alternate author-other status-publish iedit" valign="top">
				<td class="post-title column-title">
					<strong><a class="row-title" href="#" title="Edit &quot;<?php echo$banner['Banner']['name']?>"><?php echo$banner['Banner']['name']?></a></strong>
					<div class="row-actions">
						<span class="edit"><a href="<?php echo$html->url('/Banners/edit/'.$banner['Banner']['id'])?>" title="Edit">Edit</a> | </span>
					</div>
				</td>
				<td class="post-title column-title">
					<strong><?php echo $html->image($banner['Banner']['images'])?></strong>
				</td>
			</tr>
			<?php 
			}
			?>
		</tbody>
	</table>
	
	<!-- bof tablenav -->
	<div class="tablenav">
		<div class="tablenav-pages">
			<span class="displaying-num"><?php echo $paginator->counter(array( 'format' => 'Display %start%-%end% of %count%')); ?></span>
			<?php
				echo $paginator->prev('«', array('class' => 'prev page-numbers'));
				echo ' '.$paginator->numbers(array('class' => 'page-numbers', 'separator' => ' ', 'modulus' => '5')).' ';
				echo $paginator->next('»', array('class' => 'next page-numbers'));
			?>
		</div>
		<div class="alignleft actions">
			<?php echo$form->submit('Delete', array('name' => 'doaction2', 'class' => 'button-secondary action', 'div' => false))?> 
			<br class="clear">
		</div>
		<br class="clear">
	</div>
	<!-- eof tablenav -->
<div id="ajax-response"></div>
<br class="clear">